package fanXing;

public class MyArray<R> {
    private Object[] array = new Object[10];
    private  int index = 0;

    public void setValue (R x){
        array[this.index] = x;
        index++;
    }

    public R getValue(int index){
        return (R)array[index];
    }


}
